/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Blogic;

import Beans.SubcategoriaBean;
import Conexion.Conexion;
import Dao.SubcategoriaDAO;
import java.util.Vector;

/**
 *
 * @author orellana
 */
public class SubcategoriaBLogic {
      // Constructor
    public Vector execute(SubcategoriaBean subcategoriaBean){
        // Variables locales
        Vector resultDatos=new Vector();
        Conexion conect=new Conexion();
        resultDatos=(new SubcategoriaDAO()).insertDatosSubcategoria(subcategoriaBean, conect);
        // Retornamos el valor
        return resultDatos;
    }
    public Vector getDatosSubcategorias(SubcategoriaBean categoriaBean){
        // Variables locales
        Vector resultDatos=new Vector();
        Conexion conect=new Conexion();
        resultDatos=(new SubcategoriaDAO().getDatosSubcategorias(categoriaBean, conect));
        // Retornamos el valor
        return resultDatos;

    }

}
